b123720fa3ab52cecc8b513acf107bdac37f8700,apps/routerconsole/java/src/net/i2p/router/web/RouterConsoleRunner.java,RouterConsoleRunner,startTrayApp,#,274
Before Change
}
try {
// default false for now
boolean desktopguiEnabled = _context.getBooleanProperty(PROP_DTG_ENABLED);
if (desktopguiEnabled) {
//Check if we are in a headless environment, set properties accordingly
System.setProperty("java.awt.headless", Boolean.toString(GraphicsEnvironment.isHeadless()));
After Change
}
try {
// default false for now, except on non-service windows
String sdtg = _context.getProperty(PROP_DTG_ENABLED);
boolean desktopguiEnabled = Boolean.parseBoolean(sdtg) ||
(sdtg == null && SystemVersion.isWindows());
if (desktopguiEnabled) {
//Check if we are in a headless environment, set properties accordingly